/******************************************************************************
 * Product: Adempiere ERP & CRM Smart Business Solution                       *
 * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software, you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program, if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;

import java.sql.ResultSet;
import java.util.Properties;

/** Generated Model for hrm_catalog
 *  @author Adempiere (generated) 
 *  @version Release 3.7.0LTS - $Id$ */
public class X_hrm_catalog extends PO implements I_hrm_catalog, I_Persistent 
{

	/**
	 *
	 */
	private static final long serialVersionUID = 20121219L;

    /** the default Constructor */
    public X_hrm_catalog(Properties ctx)
    { 
      super (ctx, null, null);
    } 

    /** Standard Constructor */
    public X_hrm_catalog (Properties ctx, int hrm_catalog_ID, String trxName)
    {
      super (ctx, hrm_catalog_ID, trxName);
      /** if (hrm_catalog_ID == 0)
        {
			sethrm_catalog_ID (0);
			sethrm_paymentType (null);
        } */
    }

    /** Load Constructor */
    public X_hrm_catalog (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 3 - Client - Org 
      */
    protected int get_AccessLevel()
    {
      return accessLevel.intValue();
    }

    /** Load Meta Data */
    protected POInfo initPO (Properties ctx)
    {
      POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
      return poi;
    }

    public String toString()
    {
      StringBuffer sb = new StringBuffer ("X_hrm_catalog[")
        .append(get_ID()).append("]");
      return sb.toString();
    }

	/** Set hrm_catalog.
		@param hrm_catalog_ID hrm_catalog	  */
	public void sethrm_catalog_ID (int hrm_catalog_ID)
	{
		if (hrm_catalog_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_hrm_catalog_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_hrm_catalog_ID, Integer.valueOf(hrm_catalog_ID));
	}

	/** Get hrm_catalog.
		@return hrm_catalog	  */
	public int gethrm_catalog_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_catalog_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set hrm_isaverage.
		@param hrm_isaverage hrm_isaverage	  */
	public void sethrm_isaverage (boolean hrm_isaverage)
	{
		set_Value (COLUMNNAME_hrm_isaverage, Boolean.valueOf(hrm_isaverage));
	}

	/** Get hrm_isaverage.
		@return hrm_isaverage	  */
	public boolean ishrm_isaverage () 
	{
		Object oo = get_Value(COLUMNNAME_hrm_isaverage);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set hrm_iscnalog.
		@param hrm_iscnalog hrm_iscnalog	  */
	public void sethrm_iscnalog (boolean hrm_iscnalog)
	{
		set_Value (COLUMNNAME_hrm_iscnalog, Boolean.valueOf(hrm_iscnalog));
	}

	/** Get hrm_iscnalog.
		@return hrm_iscnalog	  */
	public boolean ishrm_iscnalog () 
	{
		Object oo = get_Value(COLUMNNAME_hrm_iscnalog);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set hrm_iscotch.
		@param hrm_iscotch hrm_iscotch	  */
	public void sethrm_iscotch (boolean hrm_iscotch)
	{
		set_Value (COLUMNNAME_hrm_iscotch, Boolean.valueOf(hrm_iscotch));
	}

	/** Get hrm_iscotch.
		@return hrm_iscotch	  */
	public boolean ishrm_iscotch () 
	{
		Object oo = get_Value(COLUMNNAME_hrm_iscotch);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set hrm_isipn.
		@param hrm_isipn hrm_isipn	  */
	public void sethrm_isipn (boolean hrm_isipn)
	{
		set_Value (COLUMNNAME_hrm_isipn, Boolean.valueOf(hrm_isipn));
	}

	/** Get hrm_isipn.
		@return hrm_isipn	  */
	public boolean ishrm_isipn () 
	{
		Object oo = get_Value(COLUMNNAME_hrm_isipn);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set hrm_isopv.
		@param hrm_isopv hrm_isopv	  */
	public void sethrm_isopv (boolean hrm_isopv)
	{
		set_Value (COLUMNNAME_hrm_isopv, Boolean.valueOf(hrm_isopv));
	}

	/** Get hrm_isopv.
		@return hrm_isopv	  */
	public boolean ishrm_isopv () 
	{
		Object oo = get_Value(COLUMNNAME_hrm_isopv);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set hrm_isrelief.
		@param hrm_isrelief hrm_isrelief	  */
	public void sethrm_isrelief (boolean hrm_isrelief)
	{
		set_Value (COLUMNNAME_hrm_isrelief, Boolean.valueOf(hrm_isrelief));
	}

	/** Get hrm_isrelief.
		@return hrm_isrelief	  */
	public boolean ishrm_isrelief () 
	{
		Object oo = get_Value(COLUMNNAME_hrm_isrelief);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set hrm_istotal.
		@param hrm_istotal hrm_istotal	  */
	public void sethrm_istotal (boolean hrm_istotal)
	{
		set_Value (COLUMNNAME_hrm_istotal, Boolean.valueOf(hrm_istotal));
	}

	/** Get hrm_istotal.
		@return hrm_istotal	  */
	public boolean ishrm_istotal () 
	{
		Object oo = get_Value(COLUMNNAME_hrm_istotal);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** hrm_paymentType AD_Reference_ID=1000117 */
	public static final int HRM_PAYMENTTYPE_AD_Reference_ID=1000117;
	/** PAYMENT = 1000001 */
	public static final String HRM_PAYMENTTYPE_PAYMENT = "1000001";
	/** VACATION = 1000002 */
	public static final String HRM_PAYMENTTYPE_VACATION = "1000002";
	/** ILLNESS = 1000003 */
	public static final String HRM_PAYMENTTYPE_ILLNESS = "1000003";
	/** BUSINESSTRIP = 1000004 */
	public static final String HRM_PAYMENTTYPE_BUSINESSTRIP = "1000004";
	/** BONUS = 1000005 */
	public static final String HRM_PAYMENTTYPE_BONUS = "1000005";
	/** MATERIALAID = 1000006 */
	public static final String HRM_PAYMENTTYPE_MATERIALAID = "1000006";
	/** MEDICARE = 1000007 */
	public static final String HRM_PAYMENTTYPE_MEDICARE = "1000007";
	/** CHECKOFF = 1000008 */
	public static final String HRM_PAYMENTTYPE_CHECKOFF = "1000008";
	/** REVIEW = 1000009 */
	public static final String HRM_PAYMENTTYPE_REVIEW = "1000009";
	/** VACATIONAID = 1000010 */
	public static final String HRM_PAYMENTTYPE_VACATIONAID = "1000010";
	/** LOAN = 1000011 */
	public static final String HRM_PAYMENTTYPE_LOAN = "1000011";
	/** DISMISSAL = 1000012 */
	public static final String HRM_PAYMENTTYPE_DISMISSAL = "1000012";
	/** PROFIT = 1000013 */
	public static final String HRM_PAYMENTTYPE_PROFIT = "1000013";
	
	/** Set hrm_paymentType.
		@param hrm_paymentType hrm_paymentType	  */
	public void sethrm_paymentType (String hrm_paymentType)
	{

		set_Value (COLUMNNAME_hrm_paymentType, hrm_paymentType);
	}

	/** Get hrm_paymentType.
		@return hrm_paymentType	  */
	public String gethrm_paymentType () 
	{
		return (String)get_Value(COLUMNNAME_hrm_paymentType);
	}

	/** Set Name.
		@param Name 
		Alphanumeric identifier of the entity
	  */
	public void setName (String Name)
	{
		set_Value (COLUMNNAME_Name, Name);
	}

	/** Get Name.
		@return Alphanumeric identifier of the entity
	  */
	public String getName () 
	{
		return (String)get_Value(COLUMNNAME_Name);
	}
}